﻿@{
    ViewBag.Title = "注册";
}
@using QDT.Web
@model QDT.Web.Models.UserLoginModel
<style type="text/css">
    .auth-msg {
        margin-top: 10px;
        padding: 8px 36px;
        font-size: 12px;
        line-height: 13px;
        color: #333;
        background: url(http://a.tbcdn.cn/sys/common/img/msg_bg.png) no-repeat
    }
    .auth-error {
        border: 1px solid #ffe1cc;
        background-position: 8px 6px;
        background-color: #fff2f2
    }
    .auth-success {
        background-position: 8px -245px;
        border: 1px solid #a4da2e;
        background-color: #f0ffe5
    }
    .auth-warn {
        background-position: 8px -145px;
        border: 1px solid #9bc9e8;
        background-color: #e6f1f9
    }
</style>

<div id="jm-touch">
		<div id="jm-user-reg-form-c">
				<form id="jm-user-reg-form" method="post" action="@Url.Action("Register","Account")" onsubmit="return  check();" >
						<input type="hidden" name="openId" id="openId">
				    <div>
				        <input id="signName" name="UserName" onblur="chekUsNamefor()" type="text" placeholder="请填写用户名" jmuser="" class="first-child"/>
				        <div class="msg-wrapper" >
				            <p class="auth-msg auth-error tip_name" style="display: none;" id="signNameTip"></p>
				        </div>
				    </div>
						<div>
								<input type="password" placeholder="请填写密码 "id="signPwd" name="Password" onblur="chekPwdfor()" jmpwd="">
								<div class="msg-wrapper">
                                    <p class="auth-msg auth-error tip_name" style="display: none;" id="signPwdTip"></p>
								</div>
						</div>
						<div>
						    <input type="text" placeholder="请输入手机" id="mobile" name="mobile"  required-msg="手机号码不可为空" cnmobile="" onblur="checkMobilefor()" maxlength="11"/>
								<div class="msg-wrapper">
                                    <p class="auth-msg auth-error tip_name" style="display: none;" id="mobileMessage"></p>
								</div>
						</div>
						<div>
								<div class="captcha-c">
								    <input type="text" placeholder="请输入验证码" name="ValidateCode" id="authCode"  required-msg="验证码不可为空" onblur="chekVerifyCode();" class="first-child"/>
										 <p id="captcha-img" style="line-height: 40px;">@Html.ValidateImage() <a href="javascript:$('#ValicodeImg').click();" style="font-size: 13px;color: #888;">换一张?</a></p>
								    <div class="msg-wrapper">
								         <p class="auth-msg auth-error tip_name" style="display: none;" id="signAuthCodeTip"></p>
								    </div>
								</div>
						</div>
@*						<div class="contact-c">*@
@*								<input id="jm-contract-agree" type="checkbox" name="jm-contract-agree" checked="checked" required required-msg="需同意积乾贷网用户协议">*@
@*								<label for="jm-contract-agree">同意乾贷网</label>*@
@*								<a href="#" target="_blank" id="jm-contract-btn">乾贷网</a>*@
@*						    <div class="msg-wrapper" style="display: none;"></div>*@
@**@
@*						</div>*@
						<div>
								<button id="jm-submit-btn" type="submit" role="button" aria-disabled="false" tabindex="0" hidefocus="true" aria-pressed="false">注册</button>
						</div>
						<div class="msg-wrapper" style="display: none;"></div>
				</form>
				<div class="login-c"><span>已有账号?</span><a href="@Url.Action("Login","Account")">登录</a></div>
		</div>
</div>
<script type="text/javascript">
    function check() {
        if (chekUsNamefor() && chekPwdfor() && checkMobilefor()&&chekVerifyCode()) {
            return true;
        }
        return false;
    }
</script>

<script src="/Content/Default/JS/RegistAndLogin/global-1.1.0.min.js" type="text/javascript"></script>
<script src="/Content/Default/JS/RegistAndLogin/account.set.js" type="text/javascript"></script>
<script src="/Content/Default/JS/RegistAndLogin/registerVerify.js" type="text/javascript"></script>
